<script src='<?php echo $this->basePath("/plugin/jquery/jquery-1.8.0.min.js")?>'></script>

<?php 
	$form = $this->loginForm;
	$form->setAttribute('action',"");
	$form->prepare();
	echo $this->form()->openTag($form);
?>
<table   width="400"   border='1'  class='list'   >
		    <tr>
		        <td colspan='2'   width='100 '>
		             	登陆示例模型
		         </td>
		    </tr>
		    <tr>
		        <td><?php  echo $this->formlabel($form->get('username'));?></td>
		        <td><?php  echo $this->formText($form->get('username'));?></td>
		    </tr>
		    <tr>
				<td>
					<?php echo $this->formlabel($form->get('password'));?>
				</td>
				<td>
				 <?php echo $this->formPassword($form->get('password'));?>
			    </td>
			</tr>
			<tr>
			    <td><?php echo $this->formlabel($form->get('captcha'));?></td>
			    <td><?php  echo $this->formCaptcha($form->get('captcha'));?></td>
			</tr>
			<tr>
			    <td></td>
			    <td><?php  echo $this->formSubmit($form->get('submit'));?></td>
			</tr>
</table>
<?php echo $this->form()->closeTag();?>


<script>
$("#imgpng-image").click(function(){
	var id = $("#imgpng-hidden").val();
	$.ajax({
			type:'GET',
			url:"<?php echo $this->url('application/demo',array('controller'=>'Capture','action'=>'generate'))?>"+"/"+id,
			success:function(mes){
					alert(mes);
				}
		});
});
</script>